.class Lcom/waiqin365/lightapp/im/activity/bu;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Ljava/util/List;

.field final synthetic b:Lcom/waiqin365/compons/view/a;

.field final synthetic c:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;Ljava/util/List;Lcom/waiqin365/compons/view/a;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/activity/bu;->c:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    iput-object p2, p0, Lcom/waiqin365/lightapp/im/activity/bu;->a:Ljava/util/List;

    iput-object p3, p0, Lcom/waiqin365/lightapp/im/activity/bu;->b:Lcom/waiqin365/compons/view/a;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bu;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v2

    invoke-virtual {v2}, Lcom/hyphenate/chat/EMClient;->groupManager()Lcom/hyphenate/chat/EMGroupManager;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/bu;->c:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->c(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3, v0}, Lcom/hyphenate/chat/EMGroupManager;->removeUserFromGroup(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/bu;->c:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->d(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bu;->b:Lcom/waiqin365/compons/view/a;

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/a;->dismiss()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bu;->c:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    new-instance v1, Lcom/waiqin365/lightapp/im/activity/bw;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/im/activity/bw;-><init>(Lcom/waiqin365/lightapp/im/activity/bu;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->runOnUiThread(Ljava/lang/Runnable;)V

    :goto_1
    return-void

    :cond_0
    :try_start_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bu;->c:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    new-instance v1, Lcom/waiqin365/lightapp/im/activity/bv;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/im/activity/bv;-><init>(Lcom/waiqin365/lightapp/im/activity/bu;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->runOnUiThread(Ljava/lang/Runnable;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1
.end method
